package chapter9;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @create 2018-03-20 上午10:37
 */
public class MyThread2 implements Runnable {
    private static final Logger LOGGER = LoggerFactory.getLogger(MyThread2.class);

    private String name;

    public MyThread2(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        for (int i = 0; i < 200; i++) {
            LOGGER.info("{}->{}", this.name, i);
        }
    }
}
